package com.hsgene.consumables.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.consumables.service.api.impl.DictServiceImpl;
import com.hsgene.dict.dto.SysDictDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @desc: 查询字典数据service
 * @author: 江承良
 * @date: 2018/9/27 19:02
 */
@FeignClient(name = "ms-mod-dict", path = "/v1.0/genetic/testing/dict", fallback = DictServiceImpl.class)
public interface DictService {

    /**
     * 根据字典名称查询所有字典
     * @param dictAddtionId 字典名称的id
     * @return
     */
    @GetMapping("select/value/{dict_addtion_id}")
    ApiResult getDictByType(@PathVariable("dict_addtion_id") String dictAddtionId);
}
